import { MockMethod } from 'vite-plugin-mock';
import {mock} from 'mockjs';
const data = mock(
  {
    'list|100':[
      {
        'name': '@cname',
        'id|+1':1
      }
    ]
  }
) 
export default [
  {
    url: `/api/getMock`,
    method: 'get',
    response: ({query})=>{
      return {
        code: 200,
        data
      }
    }
  }
] as MockMethod[]